﻿using DoDrawExample;
using DoModelExample;
using ExampleTestUI;
using System.Windows.Forms;

namespace ATLoadNet
{
    public class ATLoadNetCmd
    {
        public static void Hello(string unparsed)
        {
           // System.Windows.Forms.MessageBox.Show("Hello example");
            ExampleTest test = new ExampleTest();
            {
                ExampleTest.myPlugin = ATLoadNet.GetApp();
            }
            test.Show();
        }

        /// <summary>
        /// 新建工程
        /// </summary>
        /// <param name="unparsed"></param>
        public static void NewProject(string unparsed)
        {
            CreateNewProject.NewProject();
        }
        /// <summary>
        /// 建模
        /// </summary>
        /// <param name="unparsed"></param>
        public static void DoModel(string unparsed)
        {
            CreateComponentExample.StartCreateComponent();
        }

        /// <summary>
        /// 出图
        /// </summary>
        /// <param name="unparsed"></param>
        public static void DoDraw(string unparsed)
        {
            if (CreateComponentExample.isDoModel)
            {
                Drawing.DoDraw();
            }
            else
            {
                MessageBox.Show("无法找到模型,请检查!");
            }
        }

    }
}
